package com.huatai.bpmn.controller;


import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huatai.bpmn.entity.BasicDataEntity;
import com.huatai.bpmn.service.BasicDataService;
import com.huatai.bpmn.service.BasicLoadService;
import com.huatai.common.api.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 审核通过之后存储的正式数据 前端控制器
 * </p>
 *
 * @author yxy
 * @since 2023-07-27
 */
@RestController
@RequestMapping("/basicData")
@Api(value = "表格数据正式存储表", tags = "表格数据正式存储表")
public class BasicDataController {

	@Autowired
	private BasicDataService basicDataService;


	/**
	 * 临时数据-查看详情
	 *	@param businessKey
	 * @return
	 */
	@PostMapping("/getInfo")
	@ApiOperation("临时数据-查看详情")
	public R getInfo(String myKey,String businessKey) {
		HashMap<String, Object> map = basicDataService.getInfo(myKey, businessKey);

		return R.data(map);
	}



}

